import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/userAudit/list',
    method: 'get',
    params: query
  })
}

export function fetchHerbList(query) {
  return request({
    url: '/userAudit/herbList',
    method: 'get',
    params: query
  })
}

export function fetchAllHerbList(query) {
  return request({
    url: '/userAudit/allHerbList',
    method: 'get',
    params: query
  })
}

export function approvalUserAudit(data) {
  return request({
    url: '/userAudit/approvalUserAudit',
    method: 'post',
    data
  })
}

export function rejectedUserAudit(data) {
  return request({
    url: '/userAudit/rejectedUserAudit',
    method: 'post',
    data
  })
}

export function queryRoleIds(query) {
  return request({
    url: '/userAudit/queryRoleIds',
    method: 'get',
    params: query
  })
}








